var CustomCamera = function() {
	this.mSource
	this.mQuality = 100;
	this.mDestinationType = Camera.DestinationType.DATA_URL;
	this.mSourceType = Camera.PictureSourceType.CAMERA;
	this.mAllowEdit = true;
	this.mEncodingType = Camera.EncodingType.JPEG;
	this.mTargetWidth = 100;
	this.mTargetHeight = 100;
	this.mSaveToPhotoAlbum = false;
	this.mCorrectOrientation = false;
};

CustomCamera.prototype = {
	constructor : CustomCamera,
	open : function(func) {
		var option = {
			quality : this.mQuality,
			destinationType : this.mDestinationType,
			sourceType : this.mSourceType,
			allowEdit : this.mAllowEdit,
			encodingType : this.mEncodingType,
			targetWidth : this.mTargetWidth,
			targetHeight : this.mTargetHeight,
			saveToPhotoAlbum : this.mSaveToPhotoAlbum,
			correctOrientation : this.mCorrectOrientation
		};
		if (func != null) {
			navigator.camera.getPicture(func, this.onFail, option);
		} else {
			navigator.camera.getPicture(this.onSuccess, this.onFail, option);
		}
	},
	onSuccess : function(source) {
		this.mSource = source;
	},
	onFail : function(message) {
		alert('Failed :: ' + message);
	}
};
